home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #25.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  6.8 KB  |  276 lines

  1. class ┬º#25┬º extends MovieClip
  2. {
  3.    var ┬º#231┬º = 5000;
  4.    var ┬º#232┬º = 2000;
  5.    var ┬º#282┬º = true;
  6.    var ┬º#279┬º = 2.5;
  7.    var ┬º#280┬º = 1.5;
  8.    var ┬º#165┬º = 1;
  9.    var ┬º#183┬º = 15;
  10.    var ┬º#162┬º = 50;
  11.    var ┬º#315┬º = 1;
  12.    var ┬º#303┬º = 30;
  13.    var ┬º#348┬º = 15;
  14.    var ┬º#321┬º = 40;
  15.    var ┬º#304┬º = 50;
  16.    var ┬º#298┬º = 64;
  17.    var ┬º#7┬º = 1;
  18.    var ┬º#36┬º = 0;
  19.    var ┬º#258┬º = false;
  20.    static var ┬º#69┬º = false;
  21.    var ┬º#86┬º = 0;
  22.    var ┬º#75┬º = false;
  23.    var ┬º#198┬º = false;
  24.    var ┬º#246┬º = 1;
  25.    function ┬º#25┬º()
  26.    {
  27.       super();
  28.       if(_root.bounds != undefined)
  29.       {
  30.          this["#279"] = _root.bounds._width / 250;
  31.          this["#280"] = _root.bounds._height / 250;
  32.       }
  33.    }
  34.    function ┬º#2┬º()
  35.    {
  36.       return "ShotPoint: ";
  37.    }
  38.    function getRandom(min, max)
  39.    {
  40.       return Math.round(Math.random() * (max - min)) + min;
  41.    }
  42.    function ┬º#8┬º(┬º#97┬º)
  43.    {
  44.       if(┬º#97┬º == this["#7"] && this["#258"] == this["#75"])
  45.       {
  46.          return undefined;
  47.       }
  48.       var _loc2_ = this._currentframe;
  49.       if(┬º#97┬º == this["#165"])
  50.       {
  51.          if(this["#75"])
  52.          {
  53.             if(eval("#25")["#69"])
  54.             {
  55.                _loc2_ = this["#298"];
  56.             }
  57.             else
  58.             {
  59.                _loc2_ = this["#303"];
  60.             }
  61.          }
  62.          else if(eval("#25")["#69"])
  63.          {
  64.             _loc2_ = this["#304"];
  65.          }
  66.          else
  67.          {
  68.             _loc2_ = this["#315"];
  69.          }
  70.       }
  71.       else if(┬º#97┬º == this["#183"])
  72.       {
  73.          if(this["#75"])
  74.          {
  75.             _loc2_ = this["#321"];
  76.          }
  77.          else
  78.          {
  79.             _loc2_ = this["#348"];
  80.          }
  81.       }
  82.       if(this["#282"])
  83.       {
  84.          this.gotoAndStop(_loc2_);
  85.       }
  86.       else
  87.       {
  88.          this.gotoAndPlay(_loc2_);
  89.       }
  90.       this["#7"] = ┬º#97┬º;
  91.       this["#258"] = this["#75"];
  92.    }
  93.    function ┬º#436┬º(x, y)
  94.    {
  95.       if(this._x <= x + 50 && this._x >= x - 50 && this._y <= y + 30 && this._y >= x - 30)
  96.       {
  97.          return true;
  98.       }
  99.       return false;
  100.    }
  101.    static function ┬º#163┬º()
  102.    {
  103.       return eval("#25")["#69"];
  104.    }
  105.    function ┬º#248┬º()
  106.    {
  107.       var _loc3_ = _root["#330"].hitTest(this._x,this._y,true);
  108.       return _loc3_;
  109.    }
  110.    function ┬º#147┬º()
  111.    {
  112.       _root["#4"]["#102"]["#337"]();
  113.       var _loc4_ = this.getRandom(-1,1);
  114.       var _loc3_ = this.getRandom(0,1);
  115.       if(_loc3_ == 0)
  116.       {
  117.          _loc3_ = -1;
  118.       }
  119.       if(_loc4_ == 0)
  120.       {
  121.          _loc3_ *= 1.5;
  122.       }
  123.       var _loc5_ = 12 * eval("#5").scale;
  124.       if(_loc3_ != 0)
  125.       {
  126.          var _loc7_ = _loc5_ * this["#279"] * (_root["#4"].level + 2) * _loc3_;
  127.          this._x += _loc7_;
  128.          if(!Bounds["#177"](this))
  129.          {
  130.             this._x = Bounds["#118"](this._x - _loc7_ * 2,this._y);
  131.          }
  132.       }
  133.       if(_loc4_ != 0)
  134.       {
  135.          var _loc6_ = _loc5_ * this["#280"] * (_root["#4"].level + 2) * _loc4_;
  136.          this._y += _loc6_;
  137.          if(!Bounds["#177"](this))
  138.          {
  139.             this._y = Bounds["#119"](this._x,this._y - _loc6_ * 2);
  140.          }
  141.       }
  142.       Bounds["#216"](this);
  143.       _root["#49"]._x = this._x;
  144.       _root["#49"]._y = this._x;
  145.       this["#149"] = this._x;
  146.       this["#100"] = this._y;
  147.       var _loc9_ = _root.center._x + eval("#5").scale * eval("#14").getRandom(-100,100);
  148.       var _loc8_ = _root.center._y + eval("#5").scale * eval("#14").getRandom(-50,50);
  149.       this["#256"] = eval("#14").getAngle(this._x,this._y,_loc9_,_loc8_);
  150.       this["#305"] = random(2) != 0 ? 1 : -1;
  151.       this.speed = eval("#14").getRandom(25,75) * eval("#5").scale * (_root["#4"].level + 2) / 3;
  152.       this["#16"] = 0;
  153.       this["#36"] = getTimer();
  154.       this["#75"] = false;
  155.       if(_root["#410"]["#442"]())
  156.       {
  157.          eval("#25")["#69"] = false;
  158.       }
  159.       else
  160.       {
  161.          eval("#25")["#69"] = this.getRandom(1,100) < _root["#4"].level * 10;
  162.       }
  163.       if(this["#86"] > 2)
  164.       {
  165.          eval("#25")["#69"] = false;
  166.       }
  167.       if(eval("#25")["#69"])
  168.       {
  169.          this["#36"] -= this["#232"];
  170.          if(_root["#4"]["#44"] != 5)
  171.          {
  172.             _root["#18"]["#8"](_root["#18"]["#162"]);
  173.          }
  174.          _root["#49"]._x = this._x;
  175.          _root["#49"]._y = this._y;
  176.          _root["#49"]._visible = true;
  177.          this["#86"] = this["#86"] + 1;
  178.       }
  179.       else
  180.       {
  181.          _root["#49"]._visible = false;
  182.          this["#86"] = 0;
  183.       }
  184.       this["#8"](this["#165"]);
  185.    }
  186.    function ┬º#203┬º()
  187.    {
  188.       return this["#7"] == this["#183"];
  189.    }
  190.    function ┬º#376┬º()
  191.    {
  192.       this["#75"] = true;
  193.       this["#8"](this["#7"]);
  194.    }
  195.    function setScale(level)
  196.    {
  197.       var _loc3_ = undefined;
  198.       if(level == 0)
  199.       {
  200.          _loc3_ = 100;
  201.       }
  202.       else if(level == 1)
  203.       {
  204.          _loc3_ = 87.5;
  205.       }
  206.       else if(level == 2)
  207.       {
  208.          _loc3_ = 75;
  209.       }
  210.       else if(level == 3)
  211.       {
  212.          _loc3_ = 62.5;
  213.       }
  214.       else
  215.       {
  216.          _loc3_ = 50;
  217.       }
  218.       this._xscale = _loc3_;
  219.       this._yscale = _loc3_;
  220.       _root["#49"]._xscale = _loc3_;
  221.       _root["#49"]._yscale = _loc3_;
  222.    }
  223.    function onEnterFrame()
  224.    {
  225.       var _loc3_ = getTimer() - this["#36"];
  226.       if(this["#75"])
  227.       {
  228.          if(_loc3_ > this["#231"] && !_root["#4"]["#9"]["#47"] && !_root["#4"]["#9"]["#57"])
  229.          {
  230.             eval("#1").getInstance()["#20"](eval("#1")["#196"]);
  231.             this["#147"]();
  232.             return undefined;
  233.          }
  234.       }
  235.       else if(_loc3_ > this["#232"])
  236.       {
  237.          this["#376"]();
  238.       }
  239.       if(this["#282"] && !(_root["#4"]["#9"]["#47"] && this["#203"]()))
  240.       {
  241.          this["#387"]();
  242.       }
  243.    }
  244.    function ┬º#387┬º()
  245.    {
  246.       if(!this["#198"])
  247.       {
  248.          this["#16"] += 74 / this["#231"];
  249.          var _loc3_ = Math.cos(this["#16"] * 3.141592653589793 / 2);
  250.          _loc3_ *= 6.283185307179586;
  251.          _loc3_ *= this["#305"];
  252.          _loc3_ /= 10;
  253.          var _loc5_ = Math.cos(this["#256"] + _loc3_);
  254.          var _loc4_ = Math.sin(this["#256"] + _loc3_);
  255.          this._x = this["#149"] + this["#16"] * this.speed * _loc5_;
  256.          this._y = this["#100"] + this["#16"] * this.speed * _loc4_;
  257.       }
  258.       Bounds["#216"](this);
  259.       _root["#49"]._x = this._x;
  260.       _root["#49"]._y = this._y;
  261.       return undefined;
  262.    }
  263.    function ┬º#443┬º(time)
  264.    {
  265.       eval("#0").log("freezing for " + time + " seconds");
  266.       clearInterval(this["#266"]);
  267.       this["#266"] = setInterval(this,"#372",time * 1000);
  268.       this["#198"] = true;
  269.    }
  270.    function ┬º#372┬º()
  271.    {
  272.       clearInterval(this["#266"]);
  273.       this["#198"] = false;
  274.    }
  275. }
  276.